# -*- coding: utf-8 -*-

from scaws import AWS
from scdb import DB01


DATA_PATH = 'data'
PREPARE_FOR_DIRS = ['log']

CFG = {
    'sleep_time': 6,
    'run_sleep_time': 3,
    # 'force_run_once': True,
    'pgsql_table': 'test_xf_news',
    'dynamodb_table': 'test_xf_news',
    'components': [
        {
            'name': 'conveyor',
            'class_name': 'scpy2.components.aws_s3sqs.S3Sqs',
            'cfg': {
                'aws': AWS,
                'queue_used_for_receive': 'c-news_parsed_sqs',
                'send_s3_enabled': False,
                # 'queue_used_for_send': 'smoke_test_downloaded',
                'receive_args': {
                    'MaxNumberOfMessages': 1,
                    'WaitTimeSeconds': 6
                }
            }
        },
        {
            'name': 'sqlexecutor',
            'class_name': 'scpy2.components.pgsql.PostgreSQL',
            'cfg': {
                'conn_args': DB01
            }
        },
        {
            'name': 'dynamodb',
            'class_name': 'scpy2.components.aws_dynamodb.DynamoDB',
            'cfg': {
                'aws': AWS
            }
        }
    ],
}
